package com.sts.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import org.apache.ibatis.annotations.Param;
import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 首页controller
 * @author FENG
 *
 */
@Controller()
public class Index {
	
	
	private Logger log = Logger.getLogger(this.getClass());

	
	/**
	 * 访问car_msg页面
	 * 
	 */
	
	@RequestMapping("/car_msg")
	public String car_msg(){
		
		log.debug("car_msg  controller in");
		
		log.debug("car_msg  controller out");
		return "car_msg";
	}
	/**
	 * 访问addCircle页面
	 * 
	 */
	
	@RequestMapping("/addCircle")
	public String addCircle(){
		
		log.debug("addCircle  controller in");
		
		log.debug("addCircle  controller out");
		return "addCircle";
	}
	
	/**
	 * 访问index页面
	 * 
	 */
	
	@RequestMapping("/index")
	public String index(){
		
		log.debug("index  controller in");
		
		log.debug("index  controller out");
		return "index";
	}
	
	/**
	 * 访问welcome页面
	 * 
	 */
	
	@RequestMapping("/welcome")
	public String welcome(){
		
		log.debug("welcome  controller in");
		
		log.debug("welcome  controller out");
		return "welcome";
	}
	/**
	 * 访问cfMap页面
	 * 
	 */
	
	@RequestMapping("/cfMap")
	public String cfMap(@Param("msg") String msg,HttpServletRequest request){
		
		log.debug("cfMap  controller in");
//		if(msg != null){
//			HttpSession session = request.getSession() ;
//			session.setAttribute("msg", msg);
//			log.debug("cfMap  controller out");
//		}
			
			log.debug("cfMap  controller out");
		return "cfMap";
	}
	/**
	 * 访问addRect页面
	 * 
	 */
	
	@RequestMapping("/addRect")
	public String addRect(){
		
		log.debug("addRect  controller in");
		
		log.debug("addRect  controller out");
		return "addRect";
	}
	/**
	 * 访问login页面
	 * 
	 */
	
	@RequestMapping("/login")
	public String login(){
		
		log.debug("login  controller in");
		
		log.debug("login  controller out");
		return "login";
	}
	/**
	 * 访问cfEquipment页面
	 * 
	 */
	
	@RequestMapping("/cfEquipment")
	public String cfEquipment(){
		
		log.debug("cfEquipment  controller in");
		
		log.debug("cfEquipment  controller out");
		return "cfEquipment";
	}
	/**
	 * 访问cfEquipment页面
	 * 
	 */
	
	@RequestMapping("/eq_run")
	public String eq_run(){
		
		log.debug("eq_run  controller in");
		
		log.debug("eq_run  controller out");
		return "eq_run";
	}
	
	/**
	 * 访问cfEquipment页面
	 * 
	 */
	
	@RequestMapping("/eq_log")
	public String eq_log(){
		
		log.debug("eq_run  controller in");
		
		log.debug("eq_run  controller out");
		return "eq_log";
	}
	
	/**
	 * 访问设备基础数据
	 * 
	 */
	
	@RequestMapping("/eq_base_msg")
	public String eq_base_msg(){
		
		log.debug("eq_base_msg  controller in");
		
		log.debug("eq_base_msg  controller out");
		return "eq_base_msg";
	}
	
	/**
	 * 访问设备运行折线图查看界面
	 * 
	 */
	
	@RequestMapping("/eq_log_view")
	public String eq_log_view(){
		
		log.debug("eq_log_view  controller in");
		
		log.debug("eq_log_view  controller out");
		return "eq_log_view";
	}
	/**
	 * 访问user_msg页面
	 * 
	 */
	
	@RequestMapping("/user_msg")
	public String user_msg(){
		
		log.debug("user_msg  controller in");
		
		log.debug("user_msg  controller out");
		return "user_msg";
	}
	/**
	 * 访问login页面
	 * 
	 */
	
	@RequestMapping("/user_select")
	public String user_select(){
		
		log.debug("user_select  controller in");
		
		log.debug("user_select  controller out");
		return "user_select";
	}
}
